package com.bsdk.install.device;

import com.bsdk.common.core.domain.AjaxResult;

/**
 * @author sunjian0225@163.com
 * @version 1.0
 * @title ICommDeviceService
 * @description
 * @create 2024/2/2 11:05
 */
public interface ICommDeviceService {


    /**
     * ping 设备并获取基本信息
     * @param gwSn 网关SN
     * @param devSn 设备SN
     * @return AjaxResult
     */
    AjaxResult ping(String gwSn, String devSn);
    //注册锁、绑定网关

    /**
     * 设备绑定网关
     * @param gwSn 网关SN
     * @param devSn 设备SN
     * @return
     */
    AjaxResult bindGateway(String gwSn, String devSn);


    /**
     * 查询锁绑定的网关
     * @param gwSn
     * @param devSn
     * @return
     */
    AjaxResult searchGateway(String gwSn, String devSn);
    /**
     * 重置设备
     * @param devSn
     * @return
     */
    AjaxResult reset(String devSn);

}
